package com.showcai.service;


import com.github.pagehelper.PageInfo;
import com.showcai.module.CertificateBatch;
import com.showcai.myRunTime.MyRunTimeExcption;

import java.util.List;
import java.util.Map;

/**
 * Created by zpc on 2017/7/11.
 */
public interface CertificateBatchService {

    CertificateBatch getCertificateBathByBatchId(Long batchId);
    /**
     * 获取卡券批次列表
     *
     * @param map
     * @return
     */
    List<CertificateBatch> getCertificateBatchList(Map<String, String> map) throws MyRunTimeExcption;
    /**
     * 修改卡券批次
     *
     * @param certificateBatch
     * @return
     */
    CertificateBatch modifyCertificateBatch(CertificateBatch certificateBatch) throws MyRunTimeExcption;

    /**
     * 创建批次
     * @param certificateBatch
     * @return
     * @throws MyRunTimeExcption
     */
    CertificateBatch createCertificateBatch(CertificateBatch certificateBatch) throws MyRunTimeExcption;

    /**
     * 获取分页卡券批次列表
     *
     * @param map
     * @return
     */
    PageInfo getPageInfoCertificateBatchList(Map<String, String> map);
}
